package edu.nju.desserthouse.action.business;

import java.io.Serializable;
import java.util.ArrayList;

import nju.edu.desserthouse.model.Goods;

public class GoodsInfoBean implements Serializable{

	private static final long serialVersionUID = 1L;
	
	private ArrayList<Goods> goods = new ArrayList<Goods>();
	
	public int getGoodsID(int i){
		return goods.get(i).getId();
	}
	
	public String getGoodsName(int i){
		return goods.get(i-1).getName();
	}
	
	public double getGoodsPrice(int i){
		return goods.get(i-1).getPrice();
	}
	
	public int getGoodsNum(int i){
		return goods.get(i-1).getNum();
	}
	
	public void setGoodsList(ArrayList<Goods> goods){
		this.goods = goods;
	}
}
